/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;


namespace JDCloudSDK.Dbaudit.Model
{

    /// <summary>
    ///  auditLogDetail
    /// </summary>
    public class AuditLogDetail
    {

        ///<summary>
        /// 客户端IP
        ///</summary>
        public string ClientIp{ get; set; }
        ///<summary>
        /// 客户端IP名称
        ///</summary>
        public string ClientIpName{ get; set; }
        ///<summary>
        /// 客户端端口
        ///</summary>
        public int? ClientPort{ get; set; }
        ///<summary>
        /// 客户端MAC
        ///</summary>
        public string ClientMac{ get; set; }
        ///<summary>
        /// 客户端主机名称
        ///</summary>
        public string ClientHostName{ get; set; }
        ///<summary>
        /// 客户端主机MAC地址
        ///</summary>
        public string ClientMacAddr{ get; set; }
        ///<summary>
        /// 操作的数据库名称
        ///</summary>
        public string DbName{ get; set; }
        ///<summary>
        /// 操作的数据库表名称
        ///</summary>
        public string TableName{ get; set; }
        ///<summary>
        /// 数据库用户名
        ///</summary>
        public string DbUser{ get; set; }
        ///<summary>
        /// 数据库工具
        ///</summary>
        public string DbTool{ get; set; }
        ///<summary>
        /// 查询语句标识
        ///</summary>
        public string SqlIdentity{ get; set; }
        ///<summary>
        /// 操作类型
        ///</summary>
        public string SqlType{ get; set; }
        ///<summary>
        /// 操作对象
        ///</summary>
        public string Target{ get; set; }
        ///<summary>
        /// 影响行数
        ///</summary>
        public int? AffectLines{ get; set; }
        ///<summary>
        /// 执行时间,如5μs,3ms
        ///</summary>
        public string Duration{ get; set; }
        ///<summary>
        /// 捕获时间
        ///</summary>
        public string CaptureTime{ get; set; }
        ///<summary>
        /// SQL详细语句
        ///</summary>
        public string SqlQuery{ get; set; }
        ///<summary>
        /// SQL语句执行结果
        ///</summary>
        public string SqlResult{ get; set; }
        ///<summary>
        /// 风险级别: 0-&gt;无风险，1-&gt;低风险，2-&gt;中风险，3-&gt;高风险
        ///</summary>
        public int? RiskLevel{ get; set; }
        ///<summary>
        /// 命中规则ID
        ///</summary>
        public string RiskRuleId{ get; set; }
        ///<summary>
        /// 命中规则名称
        ///</summary>
        public string RiskRuleName{ get; set; }
        ///<summary>
        /// 命中规则类型
        ///</summary>
        public string RiskRuleType{ get; set; }
        ///<summary>
        /// 命中规则所属规则组名称
        ///</summary>
        public string RiskRuleGroup{ get; set; }
        ///<summary>
        /// 命中规则详细描述
        ///</summary>
        public string RiskDesc{ get; set; }
        ///<summary>
        /// 执行结果：
        /// 0：默认
        /// 1：未知
        /// 2：登录成功
        /// 3：登录失败
        /// 4：超时
        /// 5：执行成功
        /// 6：执行失败
        /// 7：语句不合法
        /// 8：注销
        /// 9：会话开始
        /// 10：阻断
        /// 11：会话断开
        ///</summary>
        public int? ExecuteResult{ get; set; }
    }
}
